/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface WecharPriceModelUse extends BasicModel<WecharPriceModelUse> {
  cusCode?: string; // 客户编码
  cusName?: string; // 客户名称
  modelCode?: string; // 模板编号
  modelName?: string; // 模板名称
  createByName?: string; // 操作员
}

export const wecharPriceModelUseList = (params?: WecharPriceModelUse | any) =>
  defHttp.get<WecharPriceModelUse>({
    url: adminPath + '/setting/pricemodel/wecharPriceModelUse/list',
    params,
  });

export const wecharPriceModelUseListData = (params?: WecharPriceModelUse | any) =>
  defHttp.post<Page<WecharPriceModelUse>>({
    url: adminPath + '/setting/pricemodel/wecharPriceModelUse/listData',
    params,
  });

export const wecharPriceModelUseForm = (params?: WecharPriceModelUse | any) =>
  defHttp.get<WecharPriceModelUse>({
    url: adminPath + '/setting/pricemodel/wecharPriceModelUse/form',
    params,
  });

export const wecharPriceModelUseSave = (params?: any, data?: WecharPriceModelUse | any) =>
  defHttp.postJson<WecharPriceModelUse>({
    url: adminPath + '/setting/pricemodel/wecharPriceModelUse/save',
    params,
    data,
  });

export const wecharPriceModelUseDelete = (params?: WecharPriceModelUse | any) =>
  defHttp.get<WecharPriceModelUse>({
    url: adminPath + '/setting/pricemodel/wecharPriceModelUse/delete',
    params,
  });

export const wecharPriceModelUseCheck = (params?: WecharPriceModelUse | any) =>
  defHttp.post<Page<WecharPriceModelUse>>({
    url: adminPath + '/setting/pricemodel/wecharPriceModelUse/check',
    params,
  });
